package org.jeecg.modules.system.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.system.entity.CrawlFeatureDoc;
import org.jeecg.modules.system.entity.CrawlSiteFeatureDoc;
import org.jeecg.modules.system.mapper.CrawlFeatureDocMapper;
import org.jeecg.modules.system.service.IScrawlFeatureDocService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author wt
 * @Date: 2024/9/26 9:40
 * @Description:
 */
@Service
public class IScrawlFeatureDocServiceImpl extends ServiceImpl<CrawlFeatureDocMapper, CrawlFeatureDoc> implements IScrawlFeatureDocService {
    @Autowired
    CrawlFeatureDocMapper crawlFeatureDocMapper;

    /**
     * 查询
     *
     * @return 结果
     */
    @Override
    public Page<CrawlFeatureDoc> queryFeatureDoc(Page<CrawlFeatureDoc> page, CrawlFeatureDoc crawlFeatureDoc) {
        return crawlFeatureDocMapper.queryFeatureDoc(page, crawlFeatureDoc);
    }

    /**
     * 新增
     *
     * @return 结果
     */
    @Override
    public int insertFeatureDoc(CrawlFeatureDoc crawlFeatureDoc) {
        return crawlFeatureDocMapper.insertFeatureDoc(crawlFeatureDoc);
    }

    /**
     * 修改
     * @return 结果
     */
    @Override
    public boolean updateFeatureDoc(CrawlFeatureDoc crawlFeatureDoc)
    {
        return crawlFeatureDocMapper.updateCrawlSiteFeatureDoc(crawlFeatureDoc);
    }

    /**
     * 删除
     *
     * @return 结果
     */
    @Override
    public int deleteFeatureDoc(Long id) {
        return crawlFeatureDocMapper.deleteFeatureDoc(id);
    }

    @Override
    public int deleteBatchFeatureDoc(Long[] ids) {
        return crawlFeatureDocMapper.deleteBatchFeatureDoc(ids);
    }


}
